<div class="row-fluid">
    <div class="box paint color_24">
        <div class="title">
            <h4> <span><?php echo __('Teachers'); ?></span> </h4>
            <?php echo $this->Form->create('Teacher', array('style' => 'width: 100%')) ?>
        </div>
        <!-- End .title -->

        <div class="content">
            <table id="datatable" class="responsive table table-striped table-bordered" style="width:100%;margin-bottom:0; ">
                <thead>
                    <tr>
                       <th><?php echo __('id'); ?></th>
						<th><?php echo __('Name'); ?></th>
						<th><?php echo __('Workload'); ?></th>
						<th><?php echo __('Additional Workload'); ?></th>
						<th><?php echo __('Created'); ?></th>
						<th><?php echo __('Modified'); ?></th>
						<th><?php echo __('User'); ?></th>
                    </tr>
                </thead>
                <tbody>
                    <?php foreach ($teachers as $teacher): ?>
                   <tr>
						<td><?php echo h($teacher['Teacher']['id']); ?>&nbsp;</td>
						<td><?php echo h($teacher['Teacher']['name']); ?>&nbsp;</td>
						<td><input name="<?php echo h($teacher['Teacher']['id']); ?>[]" value="<?php echo h($teacher['Teacher']['workload']); ?>" />&nbsp;</td>
						<td><input name="<?php echo h($teacher['Teacher']['id']); ?>[]" value="<?php echo h($teacher['Teacher']['additional_workload']); ?>" />&nbsp;</td>
						<td><?php echo h($teacher['Teacher']['created']); ?>&nbsp;</td>
						<td><?php echo h($teacher['Teacher']['modified']); ?>&nbsp;</td>
						<td><?php echo h($teacher['User']['username']); ?>&nbsp;</td>
					</tr>
                    <?php endforeach; ?>
                </tbody>
            </table>
            <div class="form-actions row-fluid">
                        <div class="span7 offset3">
                            <button type="submit" class="btn btn-primary"><?php echo __('Submit workloads') ?></button>
                        </div>
            </div>
			


        </div>
        <!-- End .content --> 
    </div>
    <!-- End box --> 
</div>
<!-- End .row-fluid -->